home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
selvb20
/
secaptio.frm
< prev
next >
Wrap
Text File
|
1995-06-18
|
10KB
|
352 lines
VERSION 2.00
Begin Form CaptionDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Caption Demo"
ClientHeight = 3300
ClientLeft = 1695
ClientTop = 6870
ClientWidth = 7455
Height = 3645
Left = 1665
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 3300
ScaleWidth = 7455
Top = 6555
Width = 7515
Begin SELECTOR Selector1
Angle = 360
AutoAlign = -1 'True
AutoAngle = -1 'True
AutoOffset = -1 'True
AutoOffsetDistance= 0.4
AutoOffsetStyle = 1 ' 1 - Horizontal
AutoRadius = 0.6
AutoStartAngle = 181
AutoStopAngle = 360
BackgroundColor = &H00C0C0C0&
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 1 ' 1 - Bevel
BorderWidth = 2
Captions = SECAPTIO.FRX:0000
FrameColor = &H00C0C0C0&
FrameScaleX = 1.1
FrameScaleY = 1.1
FrameStyle = 2 ' 2 - Rectangle
Height = 2940
Highlight = -1 'True
HighlightColor = &H00008000&
KnobColor = &H00000000&
KnobOriginX = 0
KnobOriginY = 0
KnobRadius = 0.3
KnobStyle = 1 ' 1 - Pointer
KnobUserDefined = ""
Left = 150
LineDisplay = -1 'True
LineInnerRadius = 0.35
LineThickness = 2
MarkUserDefined = ""
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 23
Top = 150
Value = 4
Width = 2910
XScale = 0
YScale = 0
End
Begin TextBox Text1
Height = 315
Left = 3480
TabIndex = 0
Text = " "
Top = 2760
Width = 3855
End
Begin HScrollBar HScroll1
Height = 225
Index = 1
Left = 3480
Max = 140
Min = -140
TabIndex = 10
Top = 2070
Width = 3885
End
Begin HScrollBar HScroll1
Height = 225
Index = 0
Left = 3480
Max = 140
Min = -140
TabIndex = 5
Top = 1590
Width = 3885
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Caption ID"
Height = 1095
Left = 3450
TabIndex = 1
Top = 60
Width = 1215
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "2"
Height = 255
Index = 2
Left = 360
TabIndex = 4
TabStop = 0 'False
Top = 720
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "1"
Height = 255
Index = 1
Left = 360
TabIndex = 3
TabStop = 0 'False
Top = 480
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "0"
Height = 255
Index = 0
Left = 360
TabIndex = 2
Top = 240
Value = -1 'True
Width = 615
End
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Caption "
Height = 195
Index = 2
Left = 3480
TabIndex = 14
Top = 2550
Width = 720
End
Begin Label Colors
BackColor = &H00004040&
Height = 495
Index = 9
Left = 6840
TabIndex = 8
Top = 660
Width = 465
End
Begin Label Colors
BackColor = &H000080FF&
Height = 495
Index = 8
Left = 6840
TabIndex = 9
Top = 150
Width = 465
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 495
Index = 7
Left = 6360
TabIndex = 17
Top = 660
Width = 465
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 495
Index = 6
Left = 6360
TabIndex = 18
Top = 150
Width = 465
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 495
Index = 5
Left = 5880
TabIndex = 19
Top = 660
Width = 465
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 495
Index = 4
Left = 5880
TabIndex = 15
Top = 150
Width = 465
End
Begin Label Colors
BackColor = &H000000FF&
Height = 495
Index = 3
Left = 5400
TabIndex = 22
Top = 660
Width = 465
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 495
Index = 2
Left = 5400
TabIndex = 21
Top = 150
Width = 465
End
Begin Label Colors
BackColor = &H00808080&
Height = 495
Index = 1
Left = 4920
TabIndex = 20
Top = 660
Width = 465
End
Begin Label Colors
BackColor = &H00000000&
Height = 495
Index = 0
Left = 4920
TabIndex = 16
Top = 150
Width = 465
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 2
Left = 5325
TabIndex = 13
Top = 2730
Width = 90
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 5325
TabIndex = 12
Top = 1800
Width = 90
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Y Position:"
Height = 195
Index = 1
Left = 3480
TabIndex = 11
Top = 1860
Width = 930
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "X Position:"
Height = 195
Index = 0
Left = 3480
TabIndex = 6
Top = 1380
Width = 930
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 5325
TabIndex = 7
Top = 1320
Width = 90
End
End
Sub Colors_Click (index As Integer)
Selector1.captionColor = colors(index).BackColor
End Sub
Sub Form_Load ()
hscroll1(0) = Selector1.captionX * 100
hscroll1(1) = Selector1.CaptionY * 100
text1 = Selector1.caption
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
Selector1.captionX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
Selector1.CaptionY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
Selector1.captionX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
Selector1.CaptionY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
End Select
End Sub
Sub Option1_Click (index As Integer)
Selector1.captionID = index
hscroll1(0) = Selector1.captionX * 100
hscroll1(1) = Selector1.CaptionY * 100
text1 = Selector1.caption
End Sub
Sub Text1_Change ()
Selector1.caption = text1
End Sub